#define LIMIT_UNIT 4

#ifndef VILLES_H
#define VILLES_H

#include <string>
#include <QtGui>
#include <QApplication>
#include <QLabel>
#include <QPixmap>
#include "iostream"
#include "QMessageBox"


using namespace std;

class ComportementVille;

class Villes : public QLabel
{
    Q_OBJECT
public:
    QList<QString> voisin;
    QList<QString> voisin2;

    Villes(QWidget* p=0);
    void setUnites(int i);
    void setProprietaire(int j);
    int getUnites();
    int getProprietaire();
    int action(Villes* ville,int i);
    int getDefense();
    void setDefense(int i);
    QString getNom();
    void setType(int t);
    int getType();
    void setNom(QString n);
    void addVoisin1(QString t);
    void addVoisin2(QString t);
    void setAff(QLabel *a);
    void modifAff(int i);

private :

    int unites;
    QString nom;
    int proprietaire;
    int compt;
    int defense;
    int type;
    QPixmap villeOrJ1;
    QPixmap villeOrJ2;
    QPixmap villeFerJ1;
    QPixmap villeFerJ2;
    QPixmap villeOr;
    QPixmap villeFer;
    QLabel *aff;
    ComportementVille* comportement;
};

#endif // VILLES_H
